/// <reference path="declare.ts"/>
define(["require", "exports", "json!websiteConfig"], function (require, exports, websiteConfig) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    /** 站点路径 */
    function stationPath(path) {
        console.assert(requirejs != null);
        let contexts = requirejs.exec("contexts");
        let contextName;
        if (websiteConfig.requirejs)
            contextName = websiteConfig.requirejs.context;
        let context = contexts[contextName];
        if (context != null && context.config != null && context.config.baseUrl != null) {
            return `${context.config.baseUrl}${path}`;
        }
        return `${path}`;
    }
    exports.stationPath = stationPath;
});
